package com.square.service.auth.provider.service;

import com.baomidou.mybatisplus.extension.api.R;

/**
 * 认证服务层
 *
 * @author : 王苏
 * @since : 2021/4/21 10:56
 */
public interface AuthService {
    /**
     * 登录认证
     *
     * @param token
     * @return
     */
    R<?> doGetAuthenticationInfo(String token);

    /**
     * 角色认证
     *
     * @param userKey
     * @param value
     * @return
     */
    R<?> doGetAuthorizationInfoForRoles(String userKey, String[] value);

    /**
     * 权限认证
     *
     * @param userKey
     * @param value
     * @return
     */
    R<?> doGetAuthorizationInfoForPermissions(String userKey, String[] value);
}
